/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.mes.base.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.modules.mes.base.entity.ProductionOrder;

import java.util.List;

/**
 * 生产工单视图实体类
 *
 * @author BladeX
 * @since 2023-04-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ProductionOrderVO对象", description = "生产工单")
public class ProductionOrderVO extends ProductionOrder {
	private static final long serialVersionUID = 1L;
	private List<String> productionLines;

	@ApiModelProperty(value = "开始日期")
	private String startDate;

	@ApiModelProperty(value = "结束日期")
	private String endDate;

	@ApiModelProperty(value = "计划状态集合")
	private String planStatusStr;

	@ApiModelProperty(value = "计划状态集合")
	private List<String> planStatusList;

	@ApiModelProperty(value = "执行数量汇总")
	private Integer executeQuantitySummary;

	@ApiModelProperty(value = "完成数量汇总")
	private Integer completeQuantitySummary;

	@ApiModelProperty(value = "差异数量")
	@JsonSerialize(
			nullsUsing = NullSerializer.class,
			using = ToStringSerializer.class
	)
	private Integer differenceQuantity;

	@ApiModelProperty(value = "完成率")
	private String completeRate;

	@ApiModelProperty(value = "通过率")
	private String passRate;

}
